import request from '@/utils/request'

const api_name = '/hr/service/edu-info'

export default {
  get_eduInfos() {
    return request({
      url: `${api_name}/eduInfos`,
      method: 'get'
    })
  },
  get_eduInfo(id) {
    return request({
      url: `${api_name}/eduInfo`,
      method: 'get',
      params: { id }
    })
  },
  add_eduInfo(eduInfo) {
    return request({
      url: `${api_name}/eduInfo`,
      method: 'post',
      data: eduInfo
    })
  },
  update_eduInfo(eduInfo) {
    return request({
      url: `${api_name}/eduInfo`,
      method: 'put',
      data: eduInfo
    })
  },
  delete_eduInfo(id) {
    return request({
      url: `${api_name}/eduInfo/${id}`,
      method: 'delete'
    })
  }

}
